import {changeCurrent} from "./changeCurrent.js";
import albumMap from "./main.js";
export function addAlbum(event){
  var result=prompt("请输入相册名");
  if(result){
  let aDom=document.createElement("a");
    aDom.innerText=result;
    let albumDom=document.querySelector(".albumName");
    aDom.href="#";
    aDom.dataset.type=result;
    aDom.addEventListener("click",changeCurrent);
    albumDom.appendChild(aDom);
    albumMap[result]=[];
  }
}
